import request from '@/utils/request';

// 查询脱敏字段列表
export function add(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/decrypt/save',
		method: 'post',
		data: data,
	});
}

// 查询脱敏字段列表
export function list(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/dataMaskConfig',
		method: 'post',
		data: data,
	});
}

// 修改脱敏字段配置
export function edit(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/dataMaskConfig',
		method: 'put',
		data: data,
	});
}

// 修改脱敏字段配置(导出脱敏)
export function downEnable(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/dataMaskConfig',
		method: 'put',
		data: data,
	});
}

// 修改脱敏字段配置(展示脱敏)
export function showEnable(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/dataMaskConfig',
		method: 'put',
		data: data,
	});
}
